import request from '@/utils/request'

// 查询证照管理列表
export function listDealLicense(query) {
  return request({
    url: '/license/dealLicense/list',
    method: 'get',
    params: query
  })
}

// 查询证照管理详细
export function getDealLicense(id) {
  return request({
    url: '/license/dealLicense/' + id,
    method: 'get'
  })
}

// 保存证照管理
export function saveDealLicense(data) {
  return request({
    url: '/license/dealLicense/save',
    method: 'post',
    data: data
  })
}

// 删除证照管理
export function delDealLicense(id) {
  return request({
    url: '/license/dealLicense/' + id,
    method: 'delete'
  })
}
// 删除物业详情
export function delDealLicenseDetails(id) {
  return request({
    url: '/license/dealLicense/delDetails/' + id,
    method: 'delete'
  })
}

// 导出证照管理
export function exportDealLicense(query) {
  return request({
    url: '/license/dealLicense/export',
    method: 'get',
    params: query
  })
}
